package service.impl;

import service.CheckBox;

/**
 * Windows风格复选框 - 具体产品C1
 */
public class WindowsCheckBox implements CheckBox {
    private boolean checked;
    private String label;
    
    @Override
    public void render() {
        System.out.println("渲染Windows风格复选框: " + label);
        System.out.println("  - [ ] 方框样式");
        System.out.println("  - 状态: " + (checked ? "选中" : "未选中"));
    }
    
    @Override
    public void setChecked(boolean checked) {
        this.checked = checked;
    }
    
    @Override
    public boolean isChecked() {
        return checked;
    }
    
    @Override
    public void setLabel(String label) {
        this.label = label;
    }
}